/*
 * StatusLed.c
 *
 *  Created on: 7 paź 2014
 *      Author: ksiadmar
 */
#include <avr/io.h>
#include <util/delay.h>
#include "StatusLed.h"

void StatusLed_blink(EStatus status, ELed led)
{
	int blinksNo = status + 1;
	volatile int blinkNr = 0;
	for (;blinkNr < blinksNo; blinkNr++)
	{
		if (led == LED_BLUE)
		{
			PORTB ^= _BV(PB2);
		}
		else
		{
			PORTC ^= _BV(PC5);
		}

		_delay_ms(10);
	}
}
